import request from '@/utils/request'

// 查询软著列表
export function listSoftness(query) {
  return request({
    url: '/alldoc/softness/list',
    method: 'get',
    params: query
  })
}

// 查询软著详细
export function getSoftness(id) {
  return request({
    url: '/alldoc/softness/' + id,
    method: 'get'
  })
}

// 新增软著
export function addSoftness(data) {
  return request({
    url: '/alldoc/softness',
    method: 'post',
    data: data
  })
}

// 修改软著
export function updateSoftness(data) {
  return request({
    url: '/alldoc/softness',
    method: 'put',
    data: data
  })
}

// 删除软著
export function delSoftness(id) {
  return request({
    url: '/alldoc/softness/' + id,
    method: 'delete'
  })
}
